package rpcTest;

public class UserService implements IUser {

    @Override
    public User findNameById(String id) {
        User[] users = new User[3];
        users[0] = new User("123","test1");
        users[1] = new User("124","test2");
        users[2] = new User("125","test3");
        for(User u:users){
            if(u.getId().equals(id)){
                return u;
            }
        }
        return null;
    }
}
